<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>扫描疫苗电子监管码入库</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
		
		
		function change(){
			
			var url = "${ctx}/vaccinate/bsProduct/findbatchByVacc";
			$.ajax({
				url:url,
				data:{"vaccId":$("#vaccineid").val()},
				success:function(data){
					
					var html = "";
					var htmll =""
					$.each(data,function(i,t){
						html += "<option>" + t.batchno + "</option>"
						
					});
					
					
					 var companyNameT = "_";
					$.each(data,function(i,t){
						if(companyNameT.indexOf(t.companyName) < 0){
							htmll += "<option>" + t.companyName + "</option>"
							companyNameT += t.companyName + "_";
						}
						
					}); 
					$("#batchno").html("<option value=''>--请选择--</option>");
					$("#companyName").html("<option value=''>--请选择--</option>");
					$("#companyName").html(htmll);
					$("#batchno").html(html);
					
				}
				
			});
		}
		
		function down(){
			top.$.jBox.confirm("确认要导出出入库数据吗？","系统提示",function(v,h,f){
				if(v=="ok"){
					$("#searchForm").attr("action","${ctx}/vaccinate/bsProduct/export");
					$("#searchForm").submit();
				}
			},{buttonsFocus:1});
			top.$('.jbox-body .jbox-icon').css('top','55px');
		}
		
		
		
	</script>

	<style type="text/css">
		caption{
	    	font-size:18px;
	    	color:#555555;
	    }
	</style>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/vaccinate/bsProduct/">扫描疫苗电子监管码入库</a></li>
	
	</ul>
	<form:form id="searchForm" modelAttribute="bsProduct" action="${ctx}/vaccinate/bsProduct/queryRecordList" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<div class="breadcrumb">
			<table class="table table-bordered">
				
				<tr>
					<th>日期：</th>
					<td>
						<input name="starttime" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
							value="<fmt:formatDate value="${bsProduct.beginVaccExpDate}" pattern="yyyy-MM-dd HH:mm:ss"/>"
							onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});"/>
							
					</td>
					<th>类型:</th>
					<td><input type="text" class="input-medium"/></td>
					<th>单号:</th>
					<td><input type="text" class="input-medium"/><span class="help-inline">系统自动生成</span></td>
				</tr>
				<tr>
					
				</tr>
				
				<tr>
					<th>供货单位:</th>
					<td><input type="text" class="input-medium"/></td>
					<th>供货单位经手人:</th>
					<td colspan="3"><input type="text" class="input-medium"/></td>
				</tr>
				
				<tr>
					<th>收货单位:</th>
					<td><input type="text" class="input-medium"/></td>
					<th>收货单位经手人:</th>
					<td colspan="3"><input type="text" class="input-medium"/></td>
				</tr>
				
				
				<tr>
				<td colspan="6">
					<table  class="table table-bordered">
						<caption>扫描监管码</caption>
						<tr>
					 		<th>操作</th>
					 		<th>当前物品电子监管码</th>
					 		<th>上级包装电子监管码</th>
					 		<th>包装级别</th>
					 		<th>数量(支或粒)</th>
					 		<th><a style="color:red">*</a>疫苗属性</th>
					 	</tr>
					 <tr>
					 		<td>1</td>
					 		<td>2</td>
					 		<td>3</td>
					 		<td>4</td>
					 		<td>5</td>
					 		<td>6</td>
					 </tr>				
					</table>
					<input class="btn btn-primary text-center" type="button" value="新增"/>
					
				</td>
				</tr>
				
				<tr>
					<th>疫苗运输工具</th>
					<td colspan="5">
						<label><input type="radio" name="radio" value=""/>冷藏车</label>
						<label><input type="radio" name="radio" value=""/>疫苗运输车</label>
						<label><input type="radio" name="radio" value=""/>其他</label>
						<input type="text" />
					</td>
				</tr>
				
				<tr>
					<th>疫苗冷藏方式</th>
					<td colspan="5">
						<label><input type="radio" value=""/>冷藏车</label>
						<label><input type="radio" value=""/>车载冷藏箱</label>
						<label><input type="radio" value=""/>其他</label>
						<input type="text" />
					</td>
				</tr>
				<tr>
				<br/>
				<th>备注</th>
				<td colspan="3">
				<textarea onpropertychange="if(value.length>100) value= value.substring(0,100)"  rows="3">
				</textarea><label style="color:red"><a>*</a>最多输入100个字</label>
				</td>
				</tr>
			</table>
		</div>
	
		<ul class="ul-form breadcrumb">
			<li class="btns"><input id="btnSubmit" class="btn btn-primary"  type="submit" value="提交订单"/></li>
			<li class="clearfix"></li>
		</ul>
	</form:form>
	
	

</body>
</html>